package org.moonshiner.controller.security;

public class EncryptorFactory {

	public FileEncryptor getFileEncryptor(String algorithm) {

		FileEncryptor result = null;
		if (algorithm.equals("DES")) {
			result = new DESFileEncryptor();
		} else if (algorithm.equals("AES")) {
			result = new AESFileEncryptor();
		}
		return result;
	}

}
